package com.ruoyi.project.module.ossFileCache.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * OSS 缓存表 oss_file_cache
 * 
 * @author ruoyi
 * @date 2019-05-06
 */
public class OssFileCache extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private Long ossFileCacheId;
	/**  */
	private Date lastModified;
	/** 访问链接 */
	private String url;
	/** 文件大小 */
	private Long fileSize;
	/** 文件名称 */
	private String fileName;
	/** 存储空间名称 */
	private String bucketName;

	public void setOssFileCacheId(Long ossFileCacheId) 
	{
		this.ossFileCacheId = ossFileCacheId;
	}

	public Long getOssFileCacheId() 
	{
		return ossFileCacheId;
	}
	public void setLastModified(Date lastModified) 
	{
		this.lastModified = lastModified;
	}

	public Date getLastModified() 
	{
		return lastModified;
	}
	public void setUrl(String url) 
	{
		this.url = url;
	}

	public String getUrl() 
	{
		return url;
	}
	public void setFileSize(Long fileSize) 
	{
		this.fileSize = fileSize;
	}

	public Long getFileSize() 
	{
		return fileSize;
	}
	public void setFileName(String fileName) 
	{
		this.fileName = fileName;
	}

	public String getFileName() 
	{
		return fileName;
	}
	public void setBucketName(String bucketName) 
	{
		this.bucketName = bucketName;
	}

	public String getBucketName() 
	{
		return bucketName;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ossFileCacheId", getOssFileCacheId())
            .append("lastModified", getLastModified())
            .append("url", getUrl())
            .append("fileSize", getFileSize())
            .append("fileName", getFileName())
            .append("bucketName", getBucketName())
            .toString();
    }
}
